import {LocalStore} from "@/driver/LocalStore";

const LunchService = {
    _KEY_MENUS: 'lunch.menus',
    getMenus(callback) {
        LocalStore.get(this._KEY_MENUS, callback)
    },
    saveMenus(data) {
        LocalStore.save(this._KEY_MENUS, data)
    },
    getSysMenus() {
        const menus = [
            '黄焖鸡米饭', '炒饭', '排骨饭', '盖浇饭', '烧腊饭', '咖喱饭', '煲仔饭', '脆皮鸡饭', '烤肉拌饭', '木桶饭', '牛肉饭',
            '汉堡', '披萨意面', '沙拉/轻食', '三明治', '炸鸡', '烧烤', '小龙虾', '牛蛙', '寿司', '石锅拌饭', '捞汁小海鲜',
            '刺身', '牛排', '焗饭', '火锅', '卤味', '面', '米线', '粉', '牛肉汤', '羊肉汤', '麻辣烫', '粥', '饼', '面食'
        ]
        let sysMenus = []
        menus.forEach(item => {
            sysMenus.push({
                name: item
            })
        })
        return sysMenus
    }
}

export default LunchService